﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Common.Infrastructure
{
    /// <summary>
    /// 字段长度属性
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, Inherited = true)]
    public class EntityFieldLengthAttribute : Attribute
    {
        private int length = 0;
       
        /// <summary>
        /// 
        /// </summary>
        /// <param name="length">字段长度</param>
        public EntityFieldLengthAttribute(int length)
            : base()
        {
            this.length = length;
        }

        /// <summary>
        /// 字段长度
        /// </summary> 
        public int Length
        {
            get { return length; }
        }
    }
}
